package com.rerun.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.rerun.common.util.JsonDateFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 黑名单实体类
 *
 * @author dax.
 * @version v1.0
 * @since 2017 /9/25 13:16
 */
@TableName("black_list")
public class BlackList extends Model<BlackList> {

    private static final long serialVersionUID = 7700074740056303044L;
    @TableId(type = IdType.UUID)
    private String id;
    private String memberId;
    private long parkId;
    private String parkName;
    private int blackStatus;
    @JsonSerialize(using=JsonDateFormat.class)
    private Date createTime;
    @JsonSerialize(using=JsonDateFormat.class)
    private Date updateTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public long getParkId() {
        return parkId;
    }

    public void setParkId(long parkId) {
        this.parkId = parkId;
    }

    public String getParkName() {
        return parkName;
    }

    public void setParkName(String parkName) {
        this.parkName = parkName;
    }

    public int getBlackStatus() {
        return blackStatus;
    }

    public void setBlackStatus(int blackStatus) {
        this.blackStatus = blackStatus;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "{" +
                "id:" + id +
                ", memberId:" + memberId +
                ", parkId:" + parkId +
                ", parkName:" + parkName +
                ", blackStatus:" + blackStatus +
                ", createTime:" + createTime +
                ", updateTime:" + updateTime +
                '}';
    }
}
